<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <meta name="_csrf" th:content="${_csrf.token}"/>
    <meta name="_csrf_header" th:content="${_csrf.headerName}"/>
    <title>用户注册</title>
    <link href="/user/css/register.css" rel="stylesheet">
</head>

<body>
<div class="container">
    <h2>注册用户</h2>
    <form action="/registerUser" method="post">
        <div class="form-group"><label for="username">用户名：</label> <input id="username" name="username" required
                                                                             type="text"></div>
        <div class="form-group"><label for="email">邮箱：</label> <input id="email" name="email" required type="email">
        </div>
        <div class="form-group"><label for="password">密码：</label> <input id="password" name="password" required
                                                                           type="password"></div>
        <div class="form-group"><label for="confirm-password">确认密码：</label> <input id="confirm-password"
                                                                                       name="confirm-password"
                                                                                       required type="password">
        </div>
        <button type="submit">注册</button>
    </form>
</div>
<script src="scripts.js"></script>
</body>

</html>